home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group93c.txt
/
000036_icon-group-sender _Sat Aug 28 13:56:52 1993.msg
< prev
next >
Wrap
Internet Message Format
|
1994-02-02
|
1KB
Received: from owl.CS.Arizona.EDU by cheltenham.cs.arizona.edu; Sat, 28 Aug 1993 17:21:55 MST
Received: by owl.cs.arizona.edu; Sat, 28 Aug 1993 17:21:54 MST
Date: 28 Aug 93 13:56:52 GMT
From: sdd.hp.com!portal!cup.portal.com!Eric-Amick@hplabs.hpl.hp.com (Richard E Amick)
Organization: The Portal System (TM)
Subject: Re: system() function
Message-Id: <89125@cup.portal.com>
References: <1993Aug28.000650.682@jcnpc.cmhnet.org>
Sender: icon-group-request@cs.arizona.edu
To: icon-group@cs.arizona.edu
Status: R
Errors-To: icon-group-errors@cs.arizona.edu
> I have a 286 running under dos 3.3. I use the system() function
>to issue the VOL command to dos to see the volume label of the disk
>in drive A:. System() returns the dos exit code and not the response
>returned by the VOL command. Therefore x := system("Vol") does not
>capture the volume label as returned by Vol but rather captures 0,
>which is the exit code.
> Is there a way under ICON 8.0 to capture the volume label returned
>by the dos Vol command as a string? If so, how?
The key is to remember that any valid command line can be fed to
system(); try something like
system("vol >somefile")
then open and read "somefile". You can figure out the rest, I'm sure.